<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增菜房出库')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-ncTransportInfo-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">日期：</label>
				<div class="col-sm-8">
					<input type="text" style="height: 34px;" data-format="yyyy-MM-dd"  th:value="*{#dates.format(new java.util.Date(), 'yyyy-MM-dd')}" name="transDate" class="time-input" id="transDate"/>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">车牌号：</label>
				<div class="col-sm-8">
					<input id="carNum" name="carNum" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">蔬菜数量(框)：</label>
				<div class="col-sm-8">
					<input id="boxAmount" name="boxAmount" class="form-control" type="number" onkeyup=" value=value.replace(/^(0+)|[^\d]+/g,'')">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">出场时间：</label>
				<div class="col-sm-8">
					<input type="text" style="height: 34px;" data-format="yyyy-MM-dd HH:mm:ss"  th:value="*{#dates.format(new java.util.Date(), 'yyyy-MM-dd HH:mm:ss')}" name="outTime" class="time-input" id="outTime" data-type="datetime"/>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">质检员确认签字：</label>
				<div class="col-sm-8">
					<input id="inspectionSign" name="inspectionSign" class="form-control" type="text" th:value="${user}">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">司机出场确认签字：</label>
				<div class="col-sm-8">
					<input id="driverOutSign" name="driverOutSign" class="form-control" type="text" th:value="${user}">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">协送员出场确认签字：</label>
				<div class="col-sm-8">
					<input id="helpingOutSign" name="helpingOutSign" class="form-control" type="text" th:value="${user}">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">到供应科时间：</label>
				<div class="col-sm-8">
					<input type="text"  style="height: 34px;"   data-format="yyyy-MM-dd HH:mm:ss"  th:value="*{#dates.format(new java.util.Date(), 'yyyy-MM-dd HH:mm:ss')}" name="gykTime" class="time-input" id="gykTime" data-type="datetime"/>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">回场时间：</label>
				<div class="col-sm-8">
					<input type="text"   style="height: 34px;"  data-format="yyyy-MM-dd HH:mm:ss"  th:value="*{#dates.format(new java.util.Date(), 'yyyy-MM-dd HH:mm:ss')}" name="backTime" class="time-input" id="backTime" data-type="datetime"/>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">到场时间：</label>
				<div class="col-sm-8">
					<input type="text"  style="height: 34px;" data-format="yyyy-MM-dd HH:mm:ss"  th:value="*{#dates.format(new java.util.Date(), 'yyyy-MM-dd HH:mm:ss')}" name="reachTime"  class="time-input" id="reachTime" data-type="datetime"/>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">协送员回厂确认签字：</label>
				<div class="col-sm-8">
					<input id="helpingBackSign" name="helpingBackSign" class="form-control" type="text" th:value="${user}">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">司机回厂确认签字：</label>
				<div class="col-sm-8">
					<input id="driverBackSign" name="driverBackSign" class="form-control" type="text" th:value="${user}">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">经手人：</label>
				<div class="col-sm-8">
					<input id="transUser" name="transUser" class="form-control" type="text" th:value="${user}">
				</div>
			</div>
			<!--<div class="form-group">
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="createTime" name="createTime" class="form-control" type="text">
				</div>
			</div>-->
			<div class="form-group">	
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<textarea id="remark" name="remark"  class="form-control valid" type="text" rows="4"></textarea>
				</div>
			</div>

		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/ncTransportInfo"
		$("#form-ncTransportInfo-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-ncTransportInfo-add').serialize());
	        }
	    }
	</script>
</body>
</html>
